package com.yc.pay.controller;

import com.yc.pay.api.req.RefundReq;
import com.yc.pay.service.IRefundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 统一退款接口
 */
@RestController
@RequestMapping("/refund")
public class RefundController {

    @Autowired
    private IRefundService refundService;


    /**
     * 统一退款接口
     */
    @RequestMapping("/create")
    public void payRefund(RefundReq refundReq){

        //参数校验。非空，
        refundService.createRefund(refundReq);

    }
}
